import fetch from 'common/src/utils/fetch';

/**
 * 学院专业参数列表查询
 */
export function queryCollegeMajorList(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/queryMinorMajorList',
        method: 'POST',
        data
    });
}

/**
 * 查询进阶层次
 */
export function queryAdvancedLevel(data) {
    return fetch({
        url:
            '/api/cultureservice/minorProfessionRegistration/queryAdvancedLevelDicBySourceId',
        method: 'POST',
        data
    });
}

/**
 * 查询辅修专业
 */
export function queryMinorMajorInfo(data) {
    return fetch({
        url:
            '/api/cultureservice/minorProfessionRegistration/queryMinorProfessionInfo',
        method: 'POST',
        data
    });
}

/**
 * 根据校内校外辅修学校信息queryUniversityDicByIsOnCampus
 */
export function queryUniversityDicByIsOnCampus(data) {
    return fetch({
        url:
            '/api/cultureservice/minorProfessionRegistration/queryUniversityDicByIsOnCampus',
        method: 'POST',
        data
    });
}

/**
 * 查询年级限制
 */
export function queryGradeLimitInfo(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/queryGradeLimitInfo',
        method: 'POST',
        data
    });
}

/**
 * 查询先修课标签列表
 */
export function queryPreCourseTagList(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/queryPreCourseTagList',
        method: 'POST',
        data
    });
}

/**
 * 新增学院专业参数信息
 */
export function insertCollegeMajorInfo(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/insertCollegeMajorInfo',
        method: 'POST',
        data
    });
}

/**
 * 删除学院专业参数信息
 */
export function deleteCollegeMajorInfo(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/deleteCollegeMajorInfo',
        method: 'POST',
        data
    });
}

/**
 * 复制学院专业参数信息
 */
export function inserCopyCollegeMajorInfo(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/copyMajorAllConfigInfo',
        method: 'POST',
        data
    });
}

/**
 * 修改学院专业参数信息
 */
export function updateCollegeMajorInfo(data) {
    return fetch({
        url: '/api/cultureservice/collegeMajor/updateCollegeMajorInfo',
        method: 'POST',
        data
    });
}

/**
 * 查询配置表的信息
 */
export function queryMinorConfigInfo(data) {
    return fetch({
        url:
            '/api/cultureservice/minorProfessionRegistration/queryMinorConfigInfo',
        method: 'POST',
        data
    });
}
